//
//  ViewController.m
//  runtime的两个方法替换
//
//  Created by 中创 on 2020/1/13.
//  Copyright © 2020 LS. All rights reserved.
//

#import "ViewController.h"

#import "Father.h"
#import "Son.h"
#import "Son+Eat.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor greenColor];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    Son * s = [Son new];
    [s eat];
    
    Father * f = [Father new];
    [f eat];
}


@end
